package com.winchain.provider.expiration.rx;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import rx.Observable;

@Component
public class BillExpBeforeTaskSubsciber extends TransactionNewSubscriber<BillExpirationEvent> {
	@Autowired
	private BillExpTerminateSubscriber billExpTerminateSubscriber;

	public void execute(BillExpirationEvent event) {
		Observable<BillExpirationEvent> observers = Observable.just(event);
		observers.subscribe(this.billExpTerminateSubscriber);
	}
}
